package de.logicline.cvss.util;

import org.eclipse.core.resources.IResource;
import org.eclipse.team.internal.ccvs.core.CVSException;
import org.eclipse.team.internal.ccvs.core.ICVSResource;
import org.eclipse.team.internal.ccvs.core.ILogEntry;
import org.eclipse.team.internal.ccvs.core.resources.CVSWorkspaceRoot;

public final class CVSseUtil {

	public static IResource getResourceForLogEntry(ILogEntry logEntry) throws CVSException {
		ICVSResource cvsResource = CVSWorkspaceRoot.getRemoteResourceFor(logEntry.getRemoteFile());
		return cvsResource.getIResource();
	}
}
